package com.luowenbo.shortlink.separation.service.impl;

import com.luowenbo.shortlink.separation.annotation.HotCold;
import com.luowenbo.shortlink.separation.entity.UrlMap;
import com.luowenbo.shortlink.separation.mapper.UrlMapInColdMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class UrLMapInColdServiceImpl {

    @Autowired
    private UrlMapInColdMapper urlMapInColdMapper;

    @HotCold(value = "Cold")
    public int insertColdDataToColdDB(List<UrlMap> data) {
        return urlMapInColdMapper.insertColdDataToColdDB(data);
    }
}
